package club.hicode.daydayup.log;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.slf4j.MDC;

/**
 * log 的测试
 *
 * @author Liu Chunfu
 * @date 2018-05-24 下午7:52
 **/
@Slf4j
public class LogTest {

    @Test
    public void test1() {
        MDC.put("user", "LiuChunfu");
        //for (int i = 0; i < 1000; i++) {
        //    log.warn("第{}次测试", i);
        //}
        int i = 10 / 0;
    }

    @Test
    public void test2() {
        log.debug("第一次测试");
    }
}
